package cjl;

import org.springframework.ai.chat.ChatResponse;
import reactor.core.publisher.Flux;

/**
 * @Author ChenJueLong
 * @Date 2025/8/21 下午5:57
 */
public interface AIService {

    ChatResponse generate(String model,String message);

    /**
     * 流式输出
     * @param model
     * @param message
     * @return
     */
    Flux<ChatResponse> generateStream(String model, String message);

}
